package spbun.fileclean.common;

public class WatchThread implements Runnable {

	private FileTravel travel = null;

	public WatchThread(FileTravel travel) {
		this.travel = travel;
	}

	@Override
	public void run() {

		while (!travel.finish) {

			System.out.println("=============");
			System.out.println("当前处理文件数量：" + travel.list.size());

			try {
				Thread.sleep(5000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}
}
